$('.btn').on('click',function(){
    $.ajax({
        type: "post",
        url: "http://localhost:3000/sign",
        data:{
            name:$('.ipt').val(),
            password: $('.ipt1').val(),
        },
        success: function (response) {
            console.log(response);
        }
    });
})

$('.btn2').on('click',function(){
    $.ajax({
        type: "get",
        url: "http://localhost:3000/login",
        data: {
            name: $('.ipt3').val(),
            password: $('#ipt4').val(),
        },
        success: function (response) {
            console.log(response);
        }
    });
})
